package com.chengzhi.eshopinventory.mapper;

import com.chengzhi.eshopinventory.entity.Inventory;
import org.springframework.stereotype.Repository;

/**
 * @description 库存
 * @author: ruanchengzhi
 * @create: 2021-04-01 17:14
 **/
@Repository
public interface InventoryMapper {

    /**
     * 更新库存
     *
     * @param inventory
     * @return int
     * @throws
     * @author ruanchengzhi
     * @date 2021/4/1
     */
    int updateById(Inventory inventory);

    /**
     * 查询库存
     *
     * @param inventoryId
     * @return com.chengzhi.eshopinventory.entity.Inventory
     * @throws
     * @author ruanchengzhi
     * @date 2021/4/1
     */
    Inventory queryById(Long inventoryId);
}
